#ifndef ZBARRENDERTHREAD_H
#define ZBARRENDERTHREAD_H
#include <renderthreadbase.h>
#include <mainzbar.h>
#include <QImage>
#include <QMutex>

// Zbar线程识别
class ZbarRenderThread : public RenderThreadBase
{
    Q_OBJECT
public:
    explicit ZbarRenderThread(QObject *parent = nullptr){
        start();
        pause();
    };
    void pushImage(QImage &image);
    void render()override;
    QImage getImage();
signals:
    void in_get_barcode_thread(QString str);
private:
    QImage m_image;
    QMutex mutex;
    MainZBar mainzbar;
};

#endif // ZBARRENDERTHREAD_H
